# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=lua-signal
pkgver=1.200
pkgrel=2
pkgdesc="Signal library for Lua"
url=https://www.batbytes.com/files/
arch=all
license=MIT
options="!check"
makedepends=lua5.1-dev
source="https://dev.alpinelinux.org/archive/lua-signal/lua-signal-$pkgver.tar.gz"
builddir=$srcdir/lua-signal

build() {
	make
}

package() {
	local moddir="$pkgdir/usr/lib/lua/5.1"
	mkdir -p "$moddir"
	make install SIGNAL_DESTINATION="$moddir"
}

sha512sums="
e89adf5885623927609c1f2c8edc695c7e53c694d7a095e2c810e7b64cd5e1b48b22040fa360ead30347f315cda90f58558f55aa54aba658bbc11cb602e692f9  lua-signal-1.200.tar.gz
"
